/**
 * Created by ss on 16/4/11.
 */
var $ = require("jquery");
var tpl = require("../../tpl/nav.tpl");
var templateUtil = require("./templateUtil.js");
var util = require("./util.js");
var nav = {
    init: function(ifShowBack, label, img, event){
        var data = {};
        data.label = label;
        data.img = img;
        $("#Nav").html(templateUtil.template(tpl, data));
        $(".return").click(function () {
            util.back();
        });
    }
};
module.exports = nav;